<template>
  <div id="app">
   <Header></Header>
    <router-view></router-view>
    <!--首页和搜索页面显示Footer组件-->
    <Footer v-show="$route.meta.show"/>
  </div>
</template>
<script>
import Header from '@/components/Header'
import Footer from '@/components/Footer'
export default {
  components: { Header, Footer},
  mounted () {
    this.$store.dispatch('categoryList')
  }
}
</script>
<style lang="scss">

</style>
